<html>
<head>
    <title> 配置Samba服务器 </title>


    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="description" content="配置Samba服务器"/>
    <meta name="keywords"
          content="nginx,freebsd,linux,mysql,shell,apache,centos,redhat,rhel,windows,sql,系统运维,IT运维,开源系统,开源系统运维"/>
    <style>
        <!--
        /* Font Definitions */
        @font-face {
            font-family: 宋体;
            panose-1: 2 1 6 0 3 1 1 1 1 1;
            mso-font-alt: SimSun;
            mso-font-charset: 134;
            mso-generic-font-family: auto;
            mso-font-pitch: variable;
            mso-font-signature: 3 135135232 16 0 262145 0;
        }

        @font-face {
            font-family: "Cambria Math";
            panose-1: 2 4 5 3 5 4 6 3 2 4;
            mso-font-charset: 1;
            mso-generic-font-family: roman;
            mso-font-format: other;
            mso-font-pitch: variable;
            mso-font-signature: 0 0 0 0 0 0;
        }

        @font-face {
            font-family: Calibri;
            panose-1: 2 15 5 2 2 2 4 3 2 4;
            mso-font-charset: 0;
            mso-generic-font-family: swiss;
            mso-font-pitch: variable;
            mso-font-signature: -1610611985 1073750139 0 0 159 0;
        }

        @font-face {
            font-family: "\@宋体";
            panose-1: 2 1 6 0 3 1 1 1 1 1;
            mso-font-charset: 134;
            mso-generic-font-family: auto;
            mso-font-pitch: variable;
            mso-font-signature: 3 135135232 16 0 262145 0;
        }

        /* Style Definitions */
        p.MsoNormal, li.MsoNormal, div.MsoNormal {
            mso-style-unhide: no;
            mso-style-qformat: yes;
            mso-style-parent: "";
            margin: 0cm;
            margin-bottom: .0001pt;
            text-align: justify;
            text-justify: inter-ideograph;
            mso-pagination: none;
            font-size: 10.5pt;
            mso-bidi-font-size: 11.0pt;
            font-family: "Calibri", "sans-serif";
            mso-fareast-font-family: 宋体;
            mso-bidi-font-family: "Times New Roman";
            mso-font-kerning: 1.0pt;
        }

        p.MsoHeader, li.MsoHeader, div.MsoHeader {
            mso-style-noshow: yes;
            mso-style-priority: 99;
            mso-style-link: "页眉 Char";
            margin: 0cm;
            margin-bottom: .0001pt;
            text-align: center;
            mso-pagination: none;
            tab-stops: center 207.65pt right 415.3pt;
            layout-grid-mode: char;
            border: none;
            mso-border-bottom-alt: solid windowtext .75pt;
            padding: 0cm;
            mso-padding-alt: 0cm 0cm 1.0pt 0cm;
            font-size: 9.0pt;
            font-family: "Calibri", "sans-serif";
            mso-ascii-font-family: Calibri;
            mso-ascii-theme-font: minor-latin;
            mso-fareast-font-family: 宋体;
            mso-fareast-theme-font: minor-fareast;
            mso-hansi-font-family: Calibri;
            mso-hansi-theme-font: minor-latin;
            mso-bidi-font-family: "Times New Roman";
            mso-bidi-theme-font: minor-bidi;
            mso-font-kerning: 1.0pt;
        }

        p.MsoFooter, li.MsoFooter, div.MsoFooter {
            mso-style-noshow: yes;
            mso-style-priority: 99;
            mso-style-link: "页脚 Char";
            margin: 0cm;
            margin-bottom: .0001pt;
            mso-pagination: none;
            tab-stops: center 207.65pt right 415.3pt;
            layout-grid-mode: char;
            font-size: 9.0pt;
            font-family: "Calibri", "sans-serif";
            mso-ascii-font-family: Calibri;
            mso-ascii-theme-font: minor-latin;
            mso-fareast-font-family: 宋体;
            mso-fareast-theme-font: minor-fareast;
            mso-hansi-font-family: Calibri;
            mso-hansi-theme-font: minor-latin;
            mso-bidi-font-family: "Times New Roman";
            mso-bidi-theme-font: minor-bidi;
            mso-font-kerning: 1.0pt;
        }

        a:link, span.MsoHyperlink {
            mso-style-noshow: yes;
            mso-style-priority: 99;
            color: blue;
            text-decoration: underline;
            text-underline: single;
        }

        a:visited, span.MsoHyperlinkFollowed {
            mso-style-noshow: yes;
            mso-style-priority: 99;
            color: purple;
            mso-themecolor: followedhyperlink;
            text-decoration: underline;
            text-underline: single;
        }

        span.Char {
            mso-style-name: "页眉 Char";
            mso-style-noshow: yes;
            mso-style-priority: 99;
            mso-style-unhide: no;
            mso-style-locked: yes;
            mso-style-link: 页眉;
            mso-ansi-font-size: 9.0pt;
            mso-bidi-font-size: 9.0pt;
        }

        span.Char0 {
            mso-style-name: "页脚 Char";
            mso-style-noshow: yes;
            mso-style-priority: 99;
            mso-style-unhide: no;
            mso-style-locked: yes;
            mso-style-link: 页脚;
            mso-ansi-font-size: 9.0pt;
            mso-bidi-font-size: 9.0pt;
        }

        .MsoChpDefault {
            mso-style-type: export-only;
            mso-default-props: yes;
            mso-bidi-font-family: "Times New Roman";
            mso-bidi-theme-font: minor-bidi;
        }

        /* Page Definitions */
        @page {
            mso-page-border-surround-header: no;
            mso-page-border-surround-footer: no;
            mso-footnote-separator: url("header.htm") /*tpa=http://www.92csz.com/study/linux/23.files/header.htm*/ fs;
            mso-footnote-continuation-separator: url("header.htm") /*tpa=http://www.92csz.com/study/linux/23.files/header.htm*/ fcs;
            mso-endnote-separator: url("header.htm") /*tpa=http://www.92csz.com/study/linux/23.files/header.htm*/ es;
            mso-endnote-continuation-separator: url("header.htm") /*tpa=http://www.92csz.com/study/linux/23.files/header.htm*/ ecs;
        }

        @page Section1 {
            size: 595.3pt 841.9pt;
            margin: 72.0pt 90.0pt 72.0pt 90.0pt;
            mso-header-margin: 42.55pt;
            mso-footer-margin: 49.6pt;
            mso-paper-source: 0;
            layout-grid: 15.6pt;
        }

        div.Section1 {
            page: Section1;
        }

        -->
    </style>
</head>

<body style="" lang="ZH-CN" link="blue" vlink="purple">
<div id="menu">
    <ul>
		<span style="FONT-SIZE: 10.5pt">

			<li><a href="index.htm" hidefocus="true" id="mn_list">linux入门教程</a></li>

		</span>
    </ul>
</div>
<div class="Section1" style="layout-grid:15.6pt">
    <div class="Section1" style="layout-grid:15.6pt">

        <p class="MsoNormal" style="text-align:center" align="center"><b style="mso-bidi-font-weight:
normal"><span style="font-size:15.0pt;font-family:宋体;mso-ascii-font-family:
Calibri;mso-hansi-font-family:Calibri">第二十三章</span></b><b style="mso-bidi-font-weight:
normal"><span style="font-size:15.0pt" lang="EN-US"><span style="mso-spacerun:yes">&nbsp; </span></span></b><b style="mso-bidi-font-weight:
normal"><span style="font-size:15.0pt;font-family:宋体;mso-ascii-font-family:
Calibri;mso-hansi-font-family:Calibri">配置</span></b><b style="mso-bidi-font-weight:
normal"><span style="font-size:15.0pt" lang="EN-US">samba</span></b><b style="mso-bidi-font-weight:normal"><span style="font-size:15.0pt;font-family:
宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">服务器</span></b><b
                style="mso-bidi-font-weight:normal"><span style="font-size:15.0pt" lang="EN-US"><o:p></o:p></span></b>
        </p>

        <p class="MsoNormal"><span style="font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">以前我们在</span><span lang="EN-US">windows</span><span
                style="font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">上共享文件的话，只需右击要共享的文件夹然后选择共享相关的选项设置即可。然而如何实现</span><span
                lang="EN-US">windows</span><span style="font-family:宋体;mso-ascii-font-family:
Calibri;mso-hansi-font-family:Calibri">和</span><span lang="EN-US">linux</span><span
                style="font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">的文件共享呢？这就涉及到了</span><span
                lang="EN-US">samba</span><span style="font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">服务了，这个软件配置起来也不难，使用也非常简单。</span></p>

        <p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">【</span><b style="mso-bidi-font-weight:normal"><span lang="EN-US">samba</span></b><b
                style="mso-bidi-font-weight:normal"><span
                style="font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">配置文件</span><span
                lang="EN-US">smb.conf</span></b><span style="font-family:宋体;mso-ascii-font-family:
Calibri;mso-hansi-font-family:Calibri">】</span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">一般你装系统的时候会默认安装</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US">samba</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">，如果没有安装，只需要运行这个命令安装</span><span style="mso-bidi-font-size:10.5pt"
                                                               lang="EN-US">(CentOS)</span><span style="mso-bidi-font-size:
10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">：</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">“yum
install -y samba samba-client”<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">Samba</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">的配置文件为</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US">/etc/samba/smb.conf</span><span style="mso-bidi-font-size:10.5pt;
font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">，通过修改这个配置文件来完成我们的各种需求。打开这个配置文件，你会发现很多内容都用</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US">”#”</span><span style="mso-bidi-font-size:
10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">或者</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US">”;”</span><span style="mso-bidi-font-size:
10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">注视掉了。先看一下未被注释掉的部分：</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">[global]<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>workgroup = MYGROUP<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>server string = Samba Server Version %v<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>security = user<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>passdb backend = tdbsam<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>load
printers = yes<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>cups
options = raw<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">[homes]<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>comment = Home Directories<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>browseable = no<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>writable = yes<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">[printers]<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>comment = All Printers<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp; </span><span
                style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;</span>path = /var/spool/samba<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>browseable = no<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>guest ok = no<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>writable = no<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>printable = yes<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">主要有以上三个部分：</span><span style="mso-bidi-font-size:10.5pt"
                                                                                    lang="EN-US">[global], [homes], [printers]</span><span
                style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">。</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><b style="mso-bidi-font-weight:normal"><span style="mso-bidi-font-size:10.5pt"
                                                                          lang="EN-US"><o:p>&nbsp;</o:p></span></b></p>

        <p class="MsoNormal"><b style="mso-bidi-font-weight:normal"><span style="mso-bidi-font-size:10.5pt"
                                                                          lang="EN-US">[global]</span></b><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US"> </span><span style="mso-bidi-font-size:10.5pt;
font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">定义全局的配置，</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US">”workgroup”</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">用来定义工作组，相信如果你安装过</span><span style="mso-bidi-font-size:10.5pt"
                                                            lang="EN-US">windows</span><span style="mso-bidi-font-size:
10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">的系统，你会对这个</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US">workgroup</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">不陌生。一般情况下，需要我们把这里的</span><span style="mso-bidi-font-size:10.5pt"
                                                              lang="EN-US">”MYGROUP”</span><span style="mso-bidi-font-size:
10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">改成</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US">”WORKGROUP”</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">（</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US">windows</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">默认的工作组名字）。</span><span style="mso-bidi-font-size:10.5pt"
                                                                                    lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">security
= user #</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">这里指定</span><span style="mso-bidi-font-size:10.5pt"
                                                                              lang="EN-US">samba</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">的安全等级。关于安全等级有四种：</span><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p></o:p></span>
        </p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">share</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">：用户不需要账户及密码即可登录</span><span style="mso-bidi-font-size:10.5pt"
                                                           lang="EN-US">samba</span><span style="mso-bidi-font-size:
10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">服务器</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">user</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">：由提供服务的</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US">samba</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">服务器负责检查账户及密码（默认）</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">server</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">：检查账户及密码的工作由另一台</span><span style="mso-bidi-font-size:10.5pt" lang="EN-US">windows</span><span
                style="mso-bidi-font-size:
10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">或</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US">samba</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">服务器负责</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">domain</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">：指定</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US">windows</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">域控制服务器来验证用户的账户及密码。</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">passdb
backend = tdbsam<span style="mso-spacerun:yes">&nbsp; </span># passdb backend </span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">（用户后台），</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US">samba</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">有三种用户后台：</span><span style="mso-bidi-font-size:10.5pt"
                                                                                  lang="EN-US">smbpasswd, tdbsam</span><span
                style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">和</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US">ldapsam.<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">smbpasswd</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">：该方式是使用</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US">smb</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">工具</span><span style="mso-bidi-font-size:10.5pt"
                                                                            lang="EN-US">smbpasswd</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">给系统用户（真实用户或者虚拟用户）设置一个</span><span style="mso-bidi-font-size:10.5pt"
                                                                 lang="EN-US">Samba </span><span style="mso-bidi-font-size:
10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">密码，客户端就用此密码访问</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US">Samba</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">资源。</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US">smbpasswd</span><span style="mso-bidi-font-size:10.5pt;font-family:
宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">在</span><span style="mso-bidi-font-size:10.5pt"
                                                                              lang="EN-US">/etc/samba</span><span
                style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">中，有时需要手工创建该文件。</span><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p></o:p></span>
        </p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">tdbsam</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">：使用数据库文件创建用户数据库。数据库文件叫</span><span style="mso-bidi-font-size:10.5pt" lang="EN-US">passdb.tdb</span><span
                style="mso-bidi-font-size:
10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">，在</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US">/etc/samba</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">中。</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US">passdb.tdb</span><span style="mso-bidi-font-size:10.5pt;font-family:
宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">用户数据库可使用</span><span style="mso-bidi-font-size:10.5pt"
                                                                                     lang="EN-US">smbpasswd </span><span
                style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">–</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US">a</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">创建</span><span style="mso-bidi-font-size:10.5pt"
                                                                            lang="EN-US">Samba</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">用户，要创建的</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US">Samba</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">用户必须先是系统用户。也可使用</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US">pdbedit</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">创建</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US">Samba</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">账户。</span><span style="mso-bidi-font-size:10.5pt"
                                                                             lang="EN-US">pdbedit</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">参数很多，列出几个主要的：</span><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p></o:p></span>
        </p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">pdbedit </span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">–</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US">a username</span><span style="mso-bidi-font-size:10.5pt;font-family:
宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">：新建</span><span style="mso-bidi-font-size:10.5pt"
                                                                                lang="EN-US">Samba</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">账户。</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">pdbedit </span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">–</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US">x username</span><span style="mso-bidi-font-size:10.5pt;font-family:
宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">：删除</span><span style="mso-bidi-font-size:10.5pt"
                                                                                lang="EN-US">Samba</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">账户。</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">pdbedit </span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">–</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US">L</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">：列出</span><span style="mso-bidi-font-size:10.5pt"
                                                                             lang="EN-US">Samba</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">用户列表，读取</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US">passdb.tdb</span><span style="mso-bidi-font-size:10.5pt;font-family:
宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">数据库文件。</span><span style="mso-bidi-font-size:10.5pt"
                                                                                   lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">pdbedit </span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">–</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US">Lv</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">：列出</span><span style="mso-bidi-font-size:10.5pt"
                                                                             lang="EN-US">Samba</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">用户列表详细信息。</span><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p></o:p></span>
        </p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">pdbedit </span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">–</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US">c </span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">“</span><span style="mso-bidi-font-size:10.5pt"
                                                                           lang="EN-US">[D]</span><span style="mso-bidi-font-size:
10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">”</span><span
                style="mso-bidi-font-size:10.5pt"> </span><span style="mso-bidi-font-size:10.5pt;
font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">–</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US">u username</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">：暂停该</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US">Samba</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">用户账号。</span><span style="mso-bidi-font-size:10.5pt"
                                                                               lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">pdbedit </span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">–</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US">c </span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">“</span><span style="mso-bidi-font-size:10.5pt"
                                                                           lang="EN-US">[]</span><span style="mso-bidi-font-size:
10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">”</span><span
                style="mso-bidi-font-size:10.5pt"> </span><span style="mso-bidi-font-size:10.5pt;
font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">–</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US">u username</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">：恢复该</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US">Samba</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">用户账号。</span><span style="mso-bidi-font-size:10.5pt"
                                                                               lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">ldapsam</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">：基于</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US">LDAP</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">账户管理方式验证用户。首先要建立</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US">LDAP</span><span style="mso-bidi-font-size:
10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">服务，设置“</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US">passdb backend =
ldapsam:ldap://LDAP Server</span><span style="mso-bidi-font-size:10.5pt;
font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">”</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">load
printers </span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">和</span><span style="mso-bidi-font-size:10.5pt"
                                                                           lang="EN-US"> cups options </span><span
                style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">两个参数用来设置打印机相关。</span><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p></o:p></span>
        </p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">除了这些参数外，还有几个参数需要你了解：</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">netbios
name = MYSERVER<span style="mso-spacerun:yes">&nbsp; </span># </span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">设置出现在“网上邻居”中的主机名</span><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p></o:p></span>
        </p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">hosts
allow = 127. <span style="mso-spacerun:yes">&nbsp;</span>192.168.12. <span style="mso-spacerun:yes">&nbsp;</span>192.168.13. # </span><span
                style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">用来设置允许的主机，如果在前面加</span><span style="mso-bidi-font-size:10.5pt"
                                                            lang="EN-US">”;”</span><span style="mso-bidi-font-size:
10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">则表示允许所有主机</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">log file
= /var/log/samba/%m.log #</span><span style="mso-bidi-font-size:10.5pt;
font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">定义</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US">samba</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">的日志，这里的</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US">%m</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">是上面的</span><span style="mso-bidi-font-size:10.5pt"
                                                                              lang="EN-US">netbios name<o:p></o:p></span>
        </p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">max log
size = 50 # </span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">指定日志的最大容量，单位是</span><span style="mso-bidi-font-size:10.5pt"
                                                                                       lang="EN-US">K<o:p></o:p></span>
        </p>

        <p class="MsoNormal"><b style="mso-bidi-font-weight:normal"><span style="mso-bidi-font-size:10.5pt"
                                                                          lang="EN-US"><o:p>&nbsp;</o:p></span></b></p>

        <p class="MsoNormal"><b style="mso-bidi-font-weight:normal"><span style="mso-bidi-font-size:10.5pt"
                                                                          lang="EN-US">[homes]</span></b><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US"> </span><span style="mso-bidi-font-size:10.5pt;
font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">该部分内容共享用户自己的家目录，也就是说，当用户登录到</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US">samba</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">服务器上时实际上是进入到了该用户的家目录，用户登陆后，共享名不是</span><span style="mso-bidi-font-size:10.5pt"
                                                                            lang="EN-US">homes</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">而是用户自己的标识符，对于单纯的文件共享的环境来说，这部分可以注视掉。</span><span style="mso-bidi-font-size:10.5pt"
                                                                               lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><b style="mso-bidi-font-weight:normal"><span style="mso-bidi-font-size:10.5pt"
                                                                          lang="EN-US"><o:p>&nbsp;</o:p></span></b></p>

        <p class="MsoNormal"><b style="mso-bidi-font-weight:normal"><span style="mso-bidi-font-size:10.5pt"
                                                                          lang="EN-US">[printers]</span></b><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US"> </span><span style="mso-bidi-font-size:10.5pt;
font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">该部分内容设置打印机共享。</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p>&nbsp;</o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">【</span><b style="mso-bidi-font-weight:normal"><span
                style="mso-bidi-font-size:
10.5pt" lang="EN-US">samba</span></b><b style="mso-bidi-font-weight:normal"><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">实践</span></b><span style="mso-bidi-font-size:
10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">】</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">注意：在试验之前，请先检测</span><span style="mso-bidi-font-size:10.5pt"
                                                                                       lang="EN-US">selinux</span><span
                style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">是否关闭，否则可能会试验不成功。关于如何关闭</span><span style="mso-bidi-font-size:10.5pt"
                                                                  lang="EN-US">selinux</span><span style="mso-bidi-font-size:
10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">请查看</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US"><a href="15.htm"><span style="font-family:
宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri" lang="EN-US"><span lang="EN-US">第十五章</span></span> linux<span
                style="font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri" lang="EN-US"><span
                lang="EN-US">系统日常管理</span></span></a></span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">的“</span><span style="mso-bidi-font-size:
10.5pt;mso-bidi-font-weight:bold" lang="EN-US">linux</span><span style="mso-bidi-font-size:
10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri;
mso-bidi-font-weight:bold">的防火墙</span><span style="mso-bidi-font-size:10.5pt;
font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">”部分</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p>&nbsp;</o:p></span></p>

        <p class="MsoNormal"><b style="mso-bidi-font-weight:normal"><span style="mso-bidi-font-size:10.5pt"
                                                                          lang="EN-US">1. </span></b><b style="mso-bidi-font-weight:
normal"><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:
Calibri;mso-hansi-font-family:Calibri">共享一个目录，任何人都可以访问，即不用输入密码即可访问，要求只读。</span></b><b
                style="mso-bidi-font-weight:normal"><span style="mso-bidi-font-size:
10.5pt" lang="EN-US"><o:p></o:p></span></b></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">打开</span><span style="mso-bidi-font-size:10.5pt"
                                                                            lang="EN-US">samba</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">的配置文件</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US">/etc/samba/smb.conf <o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">[global]</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">部分</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">把</span><span style="mso-bidi-font-size:10.5pt"
                                                                           lang="EN-US">”MY GROUP”</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">改成</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US">”WORKGROUP”<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">把</span><span style="mso-bidi-font-size:10.5pt"
                                                                           lang="EN-US">”</span><span
                lang="EN-US"> </span><span style="mso-bidi-font-size:10.5pt" lang="EN-US">security = user” </span><span
                style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">修改为</span><span style="mso-bidi-font-size:10.5pt">
<span lang="EN-US">“security = share”<o:p></o:p></span></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">然后在文件的最末尾处加入以下内容：</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">[share]<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>comment = share all<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>path
= /tmp/samba<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>browseable = yes<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>public = yes<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>writable = no<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p>&nbsp;</o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">mkdir
/tmp/samba<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">chmod 777
/tmp/samba<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">启动</span><span style="mso-bidi-font-size:10.5pt"
                                                                            lang="EN-US">samba</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">服务</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">/etc/init.d/smb
start<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p>&nbsp;</o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">测试：</span><span style="mso-bidi-font-size:10.5pt"
                                                                             lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">首先测试你配置的</span><span style="mso-bidi-font-size:10.5pt"
                                                                                  lang="EN-US">smb.conf</span><span
                style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">是否正确，用下面的命令</span><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p></o:p></span>
        </p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">testparm<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">如果没有错误，则在你的</span><span style="mso-bidi-font-size:10.5pt"
                                                                                     lang="EN-US">windows</span><span
                style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">机器上的浏览器中输入</span><span style="mso-bidi-font-size:
10.5pt"> <span lang="EN-US">file://IP/share </span></span><span style="mso-bidi-font-size:
10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">看是否能访问</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p>&nbsp;</o:p></span></p>

        <p class="MsoNormal"><b style="mso-bidi-font-weight:normal"><span style="mso-bidi-font-size:10.5pt"
                                                                          lang="EN-US">2. </span></b><b style="mso-bidi-font-weight:
normal"><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:
Calibri;mso-hansi-font-family:Calibri">共享一个目录，使用用户名和密码登录后才可以访问，要求可以读写</span></b><b
                style="mso-bidi-font-weight:normal"><span style="mso-bidi-font-size:
10.5pt" lang="EN-US"><o:p></o:p></span></b></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">打开</span><span style="mso-bidi-font-size:10.5pt"
                                                                            lang="EN-US">samba</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">的配置文件</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US">/etc/samba/smb.conf <o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">[global] </span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">部分内容如下：</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">[global]<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>workgroup = WORKGROUP<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>server string = Samba Server Version %v<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>security
= user<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>passdb backend = tdbsam<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>load
printers = yes<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>cups
options = raw<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p>&nbsp;</o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">然后加入以下内容：</span><span style="mso-bidi-font-size:10.5pt"
                                                                                   lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">[myshare]<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>comment = share for users<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>path
= /samba<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>browseable = yes<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>writable = yes<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span style="mso-tab-count:2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>public
= no<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p>&nbsp;</o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">保存配置文件，创建目录：</span><span style="mso-bidi-font-size:10.5pt"
                                                                                      lang="EN-US"><o:p></o:p></span>
        </p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">mkdir /samba<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">chmod 777
/samba<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">然后添加用户。因为在</span><span style="mso-bidi-font-size:10.5pt"
                                                                                    lang="EN-US">[globa]</span><span
                style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">中</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US">” passdb backend = tdbsam”</span><span style="mso-bidi-font-size:10.5pt;
font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">，所以要使用</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US">” pdbedit” </span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">来增加用户，注意添加的用户必须在系统中存在。</span><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p></o:p></span>
        </p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">useradd<span style="mso-spacerun:yes">&nbsp; </span>user1 user2<o:p></o:p></span>
        </p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">pdbedit
-a user1<span style="mso-spacerun:yes">&nbsp; </span># </span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">添加</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US">user1</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">账号，并定义其密码</span><span style="mso-bidi-font-size:10.5pt"
                                                                                   lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">pdbedit
-a user2<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">pdbedit
-L # </span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:
Calibri;mso-hansi-font-family:Calibri">列出所有的账号</span><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p></o:p></span>
        </p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">测试：</span><span style="mso-bidi-font-size:10.5pt"
                                                                             lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">打开</span><span style="mso-bidi-font-size:10.5pt"
                                                                            lang="EN-US">IE</span><span style="mso-bidi-font-size:
10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">浏览器输入</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US">file://IP/myshare/ </span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">然后输入用户名和密码</span><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p></o:p></span>
        </p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p>&nbsp;</o:p></span></p>

        <p class="MsoNormal"><b style="mso-bidi-font-weight:normal"><span style="mso-bidi-font-size:10.5pt"
                                                                          lang="EN-US">3. </span></b><b style="mso-bidi-font-weight:
normal"><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:
Calibri;mso-hansi-font-family:Calibri">使用</span></b><b style="mso-bidi-font-weight:
normal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">linux</span></b><b
                style="mso-bidi-font-weight:normal"><span style="mso-bidi-font-size:10.5pt;
font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">访问</span></b><b
                style="mso-bidi-font-weight:normal"><span style="mso-bidi-font-size:
10.5pt" lang="EN-US">samba</span></b><b style="mso-bidi-font-weight:normal"><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">服务器</span></b><b style="mso-bidi-font-weight:
normal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p></o:p></span></b></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">Samba</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">服务在</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US">linux</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">下同样可以访问。前提是你的</span><span style="mso-bidi-font-size:10.5pt"
                                                                                       lang="EN-US">linux</span><span
                style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">安装了</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US">samba-client</span><span style="mso-bidi-font-size:10.5pt;font-family:
宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">软件包。安装完后就可以使用</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US">smbclient</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">命令了。</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">smbclient
//IP/</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:
Calibri;mso-hansi-font-family:Calibri">共享名</span><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span
                style="mso-spacerun:yes">&nbsp;
</span>-U </span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">用户名</span><span style="mso-bidi-font-size:10.5pt"
                                                                             lang="EN-US"><span
                style="mso-spacerun:yes">&nbsp; </span><o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">如：</span><span style="mso-bidi-font-size:10.5pt"
                                                                            lang="EN-US">[root@localhost]# <b
                style="mso-bidi-font-weight:normal">smbclient //10.0.4.67/myshare/ -U user1</b><o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">Password:<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">Domain=[LOCALHOST]
OS=[Unix] Server=[Samba 3.0.33-3.29.el5_6.2]<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt" lang="EN-US">smb:
\&gt;<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">出现如上所示的界面。可以打一个</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US">”?”</span><span style="mso-bidi-font-size:
10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">列出所有可以使用的命令。常用的有</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US">cd, ls, rm, pwd, tar, mkdir,
chown, get, put</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">等等，使用</span><span style="mso-bidi-font-size:10.5pt"
                                                                               lang="EN-US">help + </span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">命令可以打印该命令如何使用，其中</span><span style="mso-bidi-font-size:10.5pt"
                                                            lang="EN-US">get</span><span style="mso-bidi-font-size:
10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">是下载，</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US">put</span><span style="mso-bidi-font-size:
10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">是上传。</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">另外的方式就是通过</span><span style="mso-bidi-font-size:10.5pt"
                                                                                   lang="EN-US">mount</span><span
                style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">挂载了：</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">如：</span><span style="mso-bidi-font-size:10.5pt"
                                                                            lang="EN-US"><o:p></o:p></span></p>

        <p class="MsoNormal"><b style="mso-bidi-font-weight:normal"><span style="mso-bidi-font-size:10.5pt"
                                                                          lang="EN-US">mount -t cifs //10.0.4.67/myshare /mnt -o
username=user1,password=123456<o:p></o:p></span></b></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">格式就是这样，要指定</span><span style="mso-bidi-font-size:10.5pt"
                                                                                    lang="EN-US">-t cifs //IP/</span><span
                style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">共享名</span><span style="mso-bidi-font-size:10.5pt">
</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:
Calibri;mso-hansi-font-family:Calibri">本地挂载点</span><span style="mso-bidi-font-size:10.5pt" lang="EN-US"><span
                style="mso-spacerun:yes">&nbsp;
</span>-o</span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">后面跟</span><span style="mso-bidi-font-size:10.5pt"
                                                                             lang="EN-US">username </span><span style="mso-bidi-font-size:10.5pt;font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font-family:Calibri">和</span><span style="mso-bidi-font-size:
10.5pt" lang="EN-US"> password<o:p></o:p></span></p>

        <p class="MsoNormal"><span style="mso-bidi-font-size:10.5pt;font-family:宋体;
mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri">挂载完后就可以像使用本地的目录一样使用共享的目录了。</span><span
                style="mso-bidi-font-size:10.5pt" lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
    </div>

    <p><span style="FONT-SIZE: 10.5pt;">上一页&nbsp;<a title="" href="22.htm">配置Tomcat</a></span><span
            style="FONT-SIZE: 10.5pt;">&nbsp;&nbsp;</span></p>
    <p><span style="FONT-SIZE: 10.5pt;">上一页&nbsp;<a title="" href="24.htm">使用nagios搭建监控服务器</a></span><span
            style="FONT-SIZE: 10.5pt;">&nbsp;&nbsp;</span></p>
    <p><span style="FONT-SIZE: 10.5pt;"><a title="" href="index.htm">回到主目录</a></span></p>

</div>
</body>
</html>